
using System;

namespace finlasku
{
	
	
	public class CustomerManagerImpl : ICustomerManager
	{
		private ICustomerDao _customerDao = null;
		
		public CustomerManagerImpl(ICustomerDao customerDao)
		{
			_customerDao = customerDao;
		}
		
		#region ICustomerManager implementation
		public void AddCustomer (Customer customer)
		{
			_customerDao.AddCustomer(customer);
		}
		
		public void UpdateCustomer (Customer customer)
		{
			_customerDao.UpdateCustomer(customer);
		}
		
		public void DeleteCustomer (long lngCustomerId)
		{
			_customerDao.DeleteCustomer(lngCustomerId);
		}
		
		public Customer GetCustomerById (long lngCustomerId)
		{
			return _customerDao.GetCustomerById(lngCustomerId);
		}
		
		public Customer GetCustomerByCustomerNumber (long lngCustomerNumber)
		{
			return _customerDao.GetCustomerByCustomerNumber(lngCustomerNumber);
		}
		
		public Customer GetCustomerByName (string strCustomerName)
		{
			return _customerDao.GetCustomerByName(strCustomerName);
		}
		
		public System.Collections.Generic.IList<Customer> GetCustomers ()
		{
			return _customerDao.GetCustomers();
		}
		#endregion
	}
}
